package com.labreeze.spring.aop.easy;

public class MethodPerformance {
	
	private long begin;
	private long end;
	
	private String methodName;
	
	
	public  MethodPerformance(String methodName){
		this.methodName=methodName;
		begin=System.currentTimeMillis();
	}
	
	public void printPerformance(){
		end=System.currentTimeMillis();
		long spendTime=end -begin;
		
		System.out.println(methodName +" cost time :"+spendTime);
				
	}

}
